package com.jbm.enterapplication.activity

import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.View
import com.jbm.enterapplication.R
import kotlinx.android.synthetic.main.activity_main.*

abstract  class  MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        frametlayout.addView(View.inflate(this,getView(),null))
        getinit()
    }

    abstract fun getView():Int//获取当前的布局
    abstract fun getinit()//初始化当前的数据





}
